package com.turman.coroutionsample.bus

import kotlinx.coroutines.flow.MutableSharedFlow

object LocalEventBus {
    val events = MutableSharedFlow<Event>()
//    val events = MutableStateFlow(Event(0))

    suspend fun postEvent(event:Event) {
        events.emit(event)
    }
}

data class Event(val timestamp: Long)